<template>
	<view class="box">
		<u-navbar title="" :fixed="true" :placeholder="true" :safeAreaInsetTop="true" :autoBack="false"
			leftIconColor="#666" titleStyle="color:#333" @leftClick="leftClick"
			bgColor="transparent"></u-navbar>
		<video class="videoss" :src="url" autoplay  ></video>
	</view>
</template>

<script>
	import {
		myAccount
	} from "../../api/wallet.js"
	export default {
		data() {
			return {
				url: "",


			}
		},
		onLoad() {
			this.url=uni.getStorageSync("videourl")
		},
		methods: {
			leftClick() {
				//获取页面栈的长度
				const canNavBack = getCurrentPages()
				console.log(canNavBack.length);
				// 判断是否刷新了浏览器，刷新了浏览器，页面栈只有当前一个
				if ( canNavBack.length > 1) {
					uni.navigateBack({
						delta: 1
					})
				} else {
					uni.switchTab({
						url:'/pages/index/index'
					})
				}
			},
		},
		

	}
</script>
<style>
	page {
		background: #E0DDDA;
	}
</style>
<style scoped lang="scss">
	.box {
		width: 750rpx;
		position: absolute;
		
	}
	.videoss{
		width: 100vw;
		height: 100vh;
	}
</style>